[@ui.dhtml title="Main Page"]
[#assign usr = Session["user"]]
  <div id="content">
    <div id="main_left">
   	    <b>
   	    	Welcome, <a href="javascript:;" dist="/user/profile" tg="main">${usr.id}</a>
   	    	&nbsp;[&nbsp;<a href="javascript:;" dist="/user/toUpdatePwd?id=${usr.id}" tg="main">ChangePwd</a>&nbsp;]
   	    </b>
    </div> 
    <div id="main_right"> 
		<ul class="menu">
			<li><a href="${ui.base}/user/logout" id="stop" onclick="return logout();">Logout</a></li>
			[#if usr.group.id=1]
			<!--<li><a href="javascript:;" dist="/user/profile" tg="main">Logs Manage</a></li>-->
			<li><a href="javascript:;" dist="/admin/user/list/p_1" tg="main">User Manage</a></li>
			[/#if]
			<li><a href="javascript:;" dist="/log/list/p_1" tg="main">Logs</a></li>
			<li><a href="javascript:;" dist="/user/profile" tg="main" class="active">Profile</a></li>
		</ul>
	</div>
	<br class="clear"/>
	<div id="main" class="main">
		<h3>Welcome back my dear !</h3>
	</div>
  </div>
	<script>
		BASE="${ui.base}";
		$(init);
	</script>
[/@ui.dhtml]